<?php
class MY_Controller extends CI_Controller {

	protected $data = array();

	function __construct() {
		parent::__construct();
		$this->load->library('common');
		if ( ! $this->session->userdata('validated'))
		{
			redirect('login');
		}
	}

	function render_page($view) {
		$this->load->view('templates/header', $this->data);
		//$this->load->view('templates/menu', $menu_data);
		$this->load->view($view, $this->data);
		$this->load->view('templates/footer', $this->data);
	}

}